$OpenBSD: patch-contrib_tcl_configure,v 1.2 2013/08/09 19:06:41 ajacoutot Exp $
--- contrib/tcl/configure.orig	Mon Apr  7 18:05:36 2008
+++ contrib/tcl/configure	Sun Dec  6 20:59:31 2009
@@ -6685,7 +6685,7 @@ else
 
     else
 
-    vars="-lpthread -lasound"
+    vars="-lpthread"
     for i in $vars; do
 	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
 	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
@@ -8476,7 +8476,7 @@ echo "${ECHO_T}$tcl_cv_ld_elf" >&6; }
 	    if test $tcl_cv_ld_elf = yes; then
 		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
 	    else
-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
+		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${LIBtcliaxclient02_VERSION}'
 	    fi
 
 	    # Ancient FreeBSD doesn't handle version numbers with dots.
@@ -8499,7 +8499,7 @@ echo "${ECHO_T}$tcl_cv_ld_elf" >&6; }
 	    DL_LIBS=""
 	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
-	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
+	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${LIBtcliaxclient02_VERSION}'
 	    { echo "$as_me:$LINENO: checking for ELF" >&5
 echo $ECHO_N "checking for ELF... $ECHO_C" >&6; }
 if test "${tcl_cv_ld_elf+set}" = set; then
